package sy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.WYAccountProjectMappingDaoI;
import sy.model.WYAccountProjectMapping;
import sy.service.WYAccountProjectMappingServiceI;
@Service("wyAccountProjectMappingService")
public class WYAccountProjectMappingServiceImpl implements WYAccountProjectMappingServiceI{
	@Autowired
	WYAccountProjectMappingDaoI wyAccountProjectMappingDao;

	@Override
	public void save(WYAccountProjectMapping wyAccountProjectMapping) {
		// TODO Auto-generated method stub
		wyAccountProjectMappingDao.save(wyAccountProjectMapping);
	}

	@Override
	public void deleteByIds(List<String> ids) {
		// TODO Auto-generated method stub
		wyAccountProjectMappingDao.deleteByIds(ids);
	}

	@Override
	public void modify(WYAccountProjectMapping wyAccountProjectMapping) {
		// TODO Auto-generated method stub
		wyAccountProjectMappingDao.modify(wyAccountProjectMapping);
	}

	@Override
	public WYAccountProjectMapping getWYAccountProjectMappingById(String id) {
		// TODO Auto-generated method stub
		return wyAccountProjectMappingDao.getWYAccountProjectMappingById(id);
	}

	@Override
	public List<WYAccountProjectMapping> listWYAccountProjectMapping() {
		// TODO Auto-generated method stub
		return wyAccountProjectMappingDao.listWYAccountProjectMapping();
	}

	@Override
	public List<WYAccountProjectMapping> listWYAccountProjectMappingByKey(
			String key) {
		// TODO Auto-generated method stub
		return wyAccountProjectMappingDao.listWYAccountProjectMappingByKey(key);
	}
	
	@Override
	public List<WYAccountProjectMapping> listWYAccountProjectMappingByProjectAndAccount(String wyAccountId,String projectId) {
		// TODO Auto-generated method stub
		return wyAccountProjectMappingDao.listWYAccountProjectMappingByProjectAndAccount(wyAccountId,projectId);
	}

	@Override
	public void saveList(List<WYAccountProjectMapping> list) {
		// TODO Auto-generated method stub
		wyAccountProjectMappingDao.saveList(list);
	}

	@Override
	public void deleteByWYAccountId(String wyAccountId) {
		// TODO Auto-generated method stub
		wyAccountProjectMappingDao.deleteByWYAccountId(wyAccountId);
	}

}
